from email import parser
from email.header import decode_header

p=parser.Parser()
f=open('../../out/mail/tmp2ciphs.mail','r')
s=p.parse(f, headersonly=1)['Subject']
print decode_header(s)[0][0]
f.close()